package dto;

import controllers.FieldController;

public abstract class PropertyField extends Field {

	private int price;
	private Player owner = null;

	public PropertyField(FieldController fieldController, String name, int price) {
		super(name, fieldController);
		this.price = price;
	}

	public int getPrice() {
		return price;
	}

	public Player getOwner() {
		return owner;
	}

	public void setOwner(Player owner) {
		this.owner = owner;
	}

	public boolean hasOwner() {
		return owner != null;
	}

	@Override
	public void resetAll() {
		owner = null;
	}

	public abstract int getRent();

}
